//
//  SexCell.m
//  Dear
//
//  Created by Taiping002 on 15/7/13.
//  Copyright (c) 2015年 陈俊俊. All rights reserved.
//

#import "SexCell.h"
#import "UIImageView+WebCache.h"
@implementation SexCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)setSexModel:(SexModel *)sexModel{
    NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"%@/%@?path=%@",ServerUrl,DearImage,sexModel.picture] ];
    [self.headImv sd_setImageWithURL:url placeholderImage:[UIImage imageNamed:@"logobg.jpg"]];
    self.titleLabel.numberOfLines = 0;
    self.titleLabel.text = sexModel.title;
    
    self.descLabel.text = sexModel.source;
    self.dateLabel.text = [NSString stringWithFormat:@"%lu",(unsigned long)sexModel.commentItem.count];
}

@end
